package com.paishen.peiniwan.module.set;

import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.paishen.common.util.BaseUtil;
import com.paishen.peiniwan.BaseActivity;
import com.paishen.peiniwan.R;
import com.paishen.common.widget.TitleLayout;

public class SetAboutActivity extends BaseActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_set_about);

        TitleLayout layTitle = (TitleLayout) findViewById(R.id.lay_title);
        layTitle.pushContent(makeBackView(), getString(R.string.set_about), null, false);

        TextView txVersion = (TextView) findViewById(R.id.tx_version);
        txVersion.setText(BaseUtil.getAppVersionName());

        findViewById(R.id.lay_client_tel).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(Intent.ACTION_DIAL, Uri.parse("tel:" + getString(R.string.about_client_tel)));
                startActivity(intent);
            }
        });
    }


}
